package com.baidu.mpks.dal.enumeration;

import com.baidu.mpks.util.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName: ShenFeiNewsDto
 * @Description: 新闻表
 * @Author: liuxinji
 * @Date: 2022/9/20 15:12
 **/
@Data
public class ShenFeiDataDto {
    private String id;
    private Date synctime;

    public boolean checkTimeliness() {
        if (null != synctime) {
            if (DateUtil.differentDaysByMillisecond(this.synctime, new Date()) >= 3) {
                return false;
            }
        }
        return true;
    }
}
